package com.rui.singleton.model;

/**
 * 懒汉式-静态内部类
 *
 * @author ZhangRui
 * @date 2023/03/02 10:39
 **/
public class StaticSingleton {

    private StaticSingleton() {
    }

    public static final StaticSingleton getInstance() {
        return SingletonHolder.INSTANCE;
    }

    private static class SingletonHolder {
        private static final StaticSingleton INSTANCE = new StaticSingleton();
    }

}
